package com.narbeshuber.tablet.lasalara.model;

public class Chapter {
	
	private String chapterKey;
	private String bookKey;
	private String title;
	private String authorName;
	private String authorEmail;
	private String version;
	private String dr;
	private String institution;
	private String allowProp;
	private int answered;
	private int totalQuestions;

	
	public String getChapterKey() {
		return chapterKey;
	}
	public void setChapterKey(String chapterKey) {
		this.chapterKey = chapterKey;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthorName() {
		return authorName;
	}
	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}
	public String getAuthorEmail() {
		return authorEmail;
	}
	public void setAuthorEmail(String authorEmail) {
		this.authorEmail = authorEmail;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getDr() {
		return dr;
	}
	public void setDr(String dr) {
		this.dr = dr;
	}
	public String getInstitution() {
		return institution;
	}
	public void setInstitution(String institution) {
		this.institution = institution;
	}
	public String getAllowProp() {
		return allowProp;
	}
	public void setAllowProp(String allowProp) {
		this.allowProp = allowProp;
	}
	public void setBookKey(String bookKey) {
		this.bookKey = bookKey;
	}
	public String getBookKey() {
		return bookKey;
	}
	public void setAnswered(int answered) {
		this.answered = answered;
	}
	public int getAnswered() {
		return answered;
	}
	public void setTotalQuestions(int totalQuestions) {
		this.totalQuestions = totalQuestions;
	}
	public int getTotalQuestions() {
		return totalQuestions;
	}
	public int calculatePercentage(){
		return (int)Math.round((double)answered/(double)totalQuestions*100);
	}

	
}
